package com.zhj.process.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自动配置类
 */
@Configuration
public class ApplicationAutoConfiguration {

    /**
     * Result advisor
     *
     * @return the result advisor
     * @since 1.0.0
     */
    @Bean
    public GlobalResultAdvice resultAdvisor() {
        return new GlobalResultAdvice();
    }

    /**
     * Result exception
     *
     * @return the result exception
     * @since 1.0.0
     */
    @Bean
    public GlobalExceptionAdvice resultException() {
        return new GlobalExceptionAdvice();
    }

}
